package com.lottery.material.dao.portaluser;

import com.lottery.material.pojo.portaluser.UserLikeRecord;

/**
 * @description 用户点赞记录Mapper
 * @author rambo
 * @date 2019年4月11日 下午9:28:39
 */
@SuppressWarnings("JavaDoc")
public interface UserLikeRecordMapper {
	
    Integer deleteByPrimaryKey(Integer id);

    Integer insert(UserLikeRecord record);

    Integer insertSelective(UserLikeRecord record);

    UserLikeRecord selectByPrimaryKey(Integer id);

    Integer updateByPrimaryKeySelective(UserLikeRecord record);

    Integer updateByPrimaryKey(UserLikeRecord record);

    /**
     * description: 查询用户点赞记录
     * author sunny
     * createDate 2019-04-15 下午 5:07
     * @param userLikeRecord
     * @return
     */
    UserLikeRecord findByUserIdAndLikeTypeAndObjectId(UserLikeRecord userLikeRecord);

    /**
     * description: 根据点赞类型和对象Id查询点赞数
     * author sunny
     * createDate 2019-04-15 上午 10:38
     * @param userLikeRecord
     * @return
     */
    Integer findCountByLikeTypeAndObjectId(UserLikeRecord userLikeRecord);
}
